package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.time.LocalDate;
import java.time.LocalDateTime;

public interface ReportService {
    /**
     * 营业额统计
     * 
 * @param begin
 * @param end
     * @return 
     * @author heiheiheng
     * @create 2025/8/13
     **/
    TurnoverReportVO turnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户数量统计
     *
 * @param begin
 * @param end
     * @return
     * @author heiheiheng
     * @create 2025/8/13
     **/
    UserReportVO userStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单数量统计
     *
 * @param begin
 * @param end
     * @return
     * @author heiheiheng
     * @create 2025/8/13
     **/
    OrderReportVO ordersStatistics(LocalDate begin, LocalDate end);

    /**
     * 统计菜品前十
     *
 * @param begin
 * @param end
     * @return
     * @author heiheiheng
     * @create 2025/8/13
     **/
    SalesTop10ReportVO top10(LocalDate begin, LocalDate end);

    /**
     * 导出运营数据报表
     * 
 * @param httpServletResponse
     * @return
     * @author heiheiheng
     * @create 2025/8/14
     **/
    void exportBusinessData(HttpServletResponse httpServletResponse) throws IOException, InvalidFormatException;
}
